<%@ page contentType="text/html; charset=UTF-8"  session="false" pageEncoding="UTF-8"  %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<spring:theme code="mobile.custom.css.file" var="mobileCss" text="" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
	    <title>CAS 登录认证系统</title>
        <c:choose>
           <c:when test="${not empty requestScope['isMobile'] and not empty mobileCss}">
                <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
                <meta name="apple-mobile-web-app-capable" content="yes" />
                <meta name="apple-mobile-web-app-status-bar-style" content="black" />
                <link type="text/css" rel="stylesheet" media="screen" href="<c:url value="/css/fss-framework-1.1.2.css" />" />
                <link type="text/css" rel="stylesheet" href="<c:url value="/css/fss-mobile-${requestScope['browserType']}-layout.css" />" />
                <link type="text/css" rel="stylesheet" href="${mobileCss}" />
           </c:when>
           <c:otherwise>
                <spring:theme code="standard.custom.css.file" var="customCssFile" />
                <link type="text/css" rel="stylesheet" href="<c:url value="${customCssFile}" />" />
           </c:otherwise>
        </c:choose>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	    <link rel="icon" href="<c:url value="/favicon.ico" />" type="image/x-icon" />
	    <script type="text/javascript">
	      window.onload=function(){
	    	  document.getElementById("username").focus();
	    	  
	      }
	    </script>
	    <style type="text/css">
	       .loginform{
	          background-image:url(images/login.png);
	          background-repeat:no-repeat;
	          width:100%;
	          height:100%;
	          margin:0 auto;
	       }
	       body{
	          
	          margin:0 auto;
	          width:1000px;
	          height:760px;
	          background-color:#016AA9;
	       }
	    </style>
	</head>
	<body>
	<div class="loginform">
	 
	<form:form method="post" id="fm1" cssClass="fm-v clearfix" commandName="${commandName}" htmlEscape="true">
			    
                <div class="box fl-panel" >
                                  
                    <div class="row fl-controls-left">
                        
						<c:if test="${not empty sessionScope.openIdLocalId}">
						<strong>${sessionScope.openIdLocalId}</strong>
						<input type="hidden" id="username" name="username" value="${sessionScope.openIdLocalId}" />
						</c:if>

						<c:if test="${empty sessionScope.openIdLocalId}">
						<spring:message code="screen.welcome.label.netid.accesskey" var="userNameAccessKey" />
						<label for="username" style="margin-top:280px;height:20px;width:30px;margin-left:410px;font-size:15px;color:white">用户</label>
						<form:input cssStyle="ime-mode:disabled;color:white;background-color:black;font-size:11px;width:98px;height:12px;margin-top:280px;margin-left:10px;"  id="username" tabindex="1" accesskey="${userNameAccessKey}" path="username" autocomplete="false" htmlEscape="true" />
						</c:if>
                    </div>
                    <div class="row fl-controls-left">
                        
						<spring:message code="screen.welcome.label.password.accesskey" var="passwordAccessKey" />
						<label for="password" style="margin-top:0px;height:20px;width:30px;margin-left:410px;font-size:15px;color:white">密码</label>
						<form:password cssStyle="ime-mode:disabled;color:white;background-color:black;font-size:11px;width:98px;height:12px;margin-left:10px;" id="password"  tabindex="2" path="password"  accesskey="${passwordAccessKey}" htmlEscape="true" autocomplete="off" />
                        
                    </div>
                    
                    <div style="margin-left:447px;">
                        <input id="warn" name="warn" value="true" tabindex="3" accesskey="<spring:message code="screen.welcome.label.warn.accesskey" />" type="checkbox" />
                        <label for="warn" style="color:yellow"><spring:message code="screen.welcome.label.warn" /></label><br/>
                        <input  src="images/loginbtn.png" name="submit" accesskey="l" value="<spring:message code="screen.welcome.button.login" />" tabindex="4" type="image" /> 
                    </div>
                    <div class="row btn-row">
						<input type="hidden" name="lt" value="${flowExecutionKey}" />
						<input type="hidden" name="_eventId" value="submit" />
    
                    </div>
                                       
                </div>
               <form:errors path="*" cssClass="errors" id="status" element="div" />
            </form:form>
            </div> 
    </body>
</html>
